package com.kingyea.app.market.client;

import com.kingyea.app.market.Dictionary.Dictionary;
import com.kingyea.app.market.condition.AllCondition;
import com.kingyea.mobilepolice.system.Result;
import com.kingyea.mobilepolice.system.aspect.NotResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author cxc
 * @version v1.0.0
 * @description This is a class
 * @date Created in 2018.04.27 15:32
 */

@FeignClient(value = "auth-server")
public interface DictionaryServiceServiceClient {

    @NotResult
    @PostMapping(value = "/dictionary/org/search")
    Object orgSearch(@RequestBody AllCondition condition);

    @NotResult
    @GetMapping("/dictionary/{id}")
    Result<Dictionary> getById(@PathVariable("id") Integer id);
}
